package com.hong.serviceorder.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hong.model.model.order.OrderInfo;
import com.hong.model.vo.order.OrderCountQueryVo;
import com.hong.model.vo.order.OrderCountVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

@Mapper
public interface OrderMapper extends BaseMapper<OrderInfo> {
    List<OrderCountVo> selectOrderCount(@Param("vo") OrderCountQueryVo orderCountQueryVo);

    int selectByScheduleIdAndPatientId(@Param("scheduleId") String scheduleId,@Param("patientId") Long patientId,@Param("curDay") String today);

//    int insert(@Param("orderInfo") OrderInfo orderInfo, @Param("scheduleId") String scheduleId, @Param("patientId")Long patientId
//    ,@Param("today") Date today);
}
